<?php
//examples/1.php

require_once __DIR__ . '/../entities/NadebTable.php';
require_once __DIR__ . '/../bootstrap.php';

//Creating our greeting
$table = new NadebTable();
$table->name = 'Mateus Martins';
$table->email = 'mateusweb@gmail.com';


//Registering $greeting with the EntityManager
$entityManager->persist($table);

//Flushing all changes to database
$entityManager->flush();

echo 'OK!';